import request from '@/utils/request'

export function getActorList(query) {
  return request({
    url: '/gm/actor/list',
    method: 'get',
    params: query
  })
}
export function getActorInfo(query) {
  return request({
    url: '/gm/actor/info',
    method: 'get',
    params: query
  })
}
export function getActorHeroList(query) {
  return request({
    url: '/gm/actor/heroList',
    method: 'get',
    params: query
  })
}

export function getReasonlConfig(query) {
  return request({
    url: '/gm/behavior/reasonconfig/list',
    method: 'get',
    params: query
  })
}

export function getBehaviorConfig() {
  return request({
    url: '/gm/config/behavior/list',
    method: 'get'
  })
}

export function handleBehaviorJobStatus(data, id) {
  return request({
    url: `/gm/log/behaviorJob/handle/${id}`,
    method: 'patch',
    data
  })
}

export function getBehaviorConfigGroup() {
  return request({
    url: '/gm/config/behavior/group/list',
    method: 'get'
  })
}

export function getBehaviorLogTypeStatic(query) {
  return request({
    url: '/gm/config/behavior/log_type/static',
    method: 'get',
    params: query
  })
}

export function configTypeKv() {
  return request({
    url: '/gm/config/behavior/configTypeKv',
    method: 'get'
  })
}
export function exportLogConfigList() {
  return request({
    url: '/gm/config/exportLogConfigList',
    method: 'get'
  })
}
export function getBehaviorLog(query) {
  return request({
    url: '/gm/log/behavior/list',
    method: 'get',
    params: query
  })
}

export function getBehaviorJobList(query) {
  return request({
    url: '/gm/log/behavior/jobList',
    method: 'get',
    params: query
  })
}

export function handleBehaviorJob(data) {
  return request({
    url: '/gm/log/behavior/handleBehaviorJob',
    method: 'post',
    data
  })
}

export function deleteBehaviorJob(data) {
  return request({
    url: '/gm/log/behavior/deleteBehaviorJob',
    method: 'post',
    data
  })
}

export function downlaodBehaviorLogJob(query) {
  return request({
    url: '/gm/log/behavior/behaviorJobLogList',
    method: 'get',
    params: query
  })
}

export function getLoadStatisList(query) {
  return request({
    url: '/gm/load/statis/list',
    method: 'get',
    params: query
  })
}

export function getLoadAccountStatisList(query) {
  return request({
    url: '/gm/load/statis/account/list',
    method: 'get',
    params: query
  })
}

export function getLoadLogList(query) {
  return request({
    url: '/gm/load/log/list',
    method: 'get',
    params: query
  })
}

export function getDauActorList(query) {
  return request({
    url: '/gm/dau/actor/list',
    method: 'get',
    params: query
  })
}

export function getDauActorStaticList(query) {
  return request({
    url: '/gm/dau/actor/static',
    method: 'get',
    params: query
  })
}

export function getRenameList(query) {
  return request({
    url: '/actor/rename/list',
    method: 'get',
    params: query
  })
}

export function handleRename(data) {
  return request({
    url: '/actor/rename/handle',
    method: 'post',
    data
  })
}

export function getClickLogType() {
  return request({
    url: '/gm/load/click/log/type',
    method: 'get'
  })
}

export function getLoadClickLogList(query) {
  return request({
    url: '/gm/load/click/log/list',
    method: 'get',
    params: query
  })
}

export function getLoadConfigList(query) {
  return request({
    url: '/gm/load/config/list',
    method: 'get',
    params: query
  })
}

export function handleLoadConfig(data) {
  return request({
    url: '/gm/load/config/handle',
    method: 'post',
    data
  })
}
